<?php
$comments = [
    1 => [
        ['content' => '非常好用'],
        ['content' => '好喜欢']
    ],
    2 => [
        ['content' => '颜色很棒'],
    ],
];

echo json_encode($comments[$_GET['id']], JSON_UNESCAPED_UNICODE);
